package com.koomii.redis.demo.message.listener;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class DemoMessageListener implements MessageListener {


	@Override
	public void onMessage(Message message, byte[] pattern) {
		System.out.println("收到消息："+new String(message.getBody()) + ",pattern:"+new String(pattern));
		
	}
}
